 //
//  NewPlanLotteryVC.m
//  WanCaiC8
//
//  Created by tangang on 2018/4/28.
//  Copyright © 2018年 tangang. All rights reserved.
//

#import "NewPlanLotteryVC.h"
#import "MJRefresh.h"
@interface NewPlanLotteryVC ()

@end

@implementation NewPlanLotteryVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.recommendView.isNew=YES;
    
    self.title = [NSString stringWithFormat:@"计划-%@",_lotteryTypeModel.Name];
}

- (void)backClick{
    [super backClick];
    [self.recommendView cancleTimer];
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [self.recommendView cancleTimer];

}


- (NewPlanRecommendView *)recommendView{
    if (!_recommendView) {
        _recommendView=[[NewPlanRecommendView alloc]init];
        _recommendView.lotteryModel=self.lotteryTypeModel;
        _recommendView.pageSize=1;
        _recommendView.footer=nil;
        _recommendView.header=nil;
//        _recommendView.isNew = YES;
        self.recommendModel.name=self.lotteryTypeModel.Name;
        _recommendView.recommendModel=self.recommendModel;
        [self.view addSubview:self.recommendView];
        [self.recommendView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
    }
    return _recommendView;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
